package structure.decorator;

/**
 * @author dali
 * @date 2021-07-16 18:11
 * @Description 客户端调用
 */

public class Client {
    public static void main(String[] args) {
        LukinCoffee lukinCoffee = new LukinCoffee();
        MilkDecorator milkDecorator = new MilkDecorator(lukinCoffee);
        SugarDecorator sugarDecorator = new SugarDecorator(milkDecorator);
        MilkDecorator addMilk2 = new MilkDecorator(sugarDecorator);
        addMilk2.getCoffee();
    }
}
